Skip to content

docs: specify destination for multi-table restore example - #73

Open
gechengfu wants to merge 1 commit into
OpenTenBase:mainfrom
gechengfu:docs/fix-multi-table-restore-gechengfu
Open

gechengfu wants to merge 1 commit into
OpenTenBase:mainfrom
gechengfu:docs/fix-multi-table-restore-gechengfu

Conversation

@gechengfu

Copy link
Copy Markdown

The two-table restore example in the Chinese data import/export guide omits -d. As written, it emits a SQL restore script to standard output, so users following this example do not restore the selected tables into their database.

Add -d opentenbase to match the surrounding restore examples, and explain the destination parameter and repeated -t selectors.

Validation

  • Checked the command before and after the change. Both table selectors are preserved and the destination is now explicit.
  • Checked OpenTenBase source at commit b2b129b35b58855ea0017650ab2abce192a4d93c. In pg_restore.c, a database name enables useDB. In pg_backup_archiver.c, that flag controls the restore connection.
  • Preserved the file's CRLF line endings. Whitespace check passed with git -c core.whitespace=cr-at-eol diff --check.
  • The documentation site built successfully using mkdocs build with the dependencies listed in the repository workflow.
  • This is a documentation and source-level verification. A live OpenTenBase restore has not been run.

@CLAassistant

CLAassistant commented Nov 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants